<?php 
$c = new Company();
$userifo = Auth::getInstance ();
?>
<div class="hleft">
	<a href="<?php echo Config::BASEURL;?>"> <img alt="logo"
		src="layout/default/image/bus.png"></a>
</div>
<div class="hmid">
	<div class="menu">
		<ul>
			<li><a href="<?php  echo Config::BASEURL ?>?_module=Route&_action=edit">Thêm Tuyến</a></li>
			<li><a href="<?php  echo Config::BASEURL ?>?_module=Trip&_action=edit">Thêm Chuyến</a></li>
			<li><a href="<?php  echo Config::BASEURL ?>?_module=Ticket&_action=edit">Thêm Vé</a></li>
			<li><a href="<?php  echo Config::BASEURL ?>?_module=Index&_action=changeselloff&start=0">Thay Đổi Giá</a></li>
			<li><a href="#">Thống Kê</a></li>
		</ul>
	</div>
	<div class="search">
		<form>
			<input id="search" type="text" placeholder="Enter keyword..." onfocus="xxx()" onblur="xxxx()">
			<button type="submit"></button>
		</form>
	</div>
</div>
<div class="hright">
	<div class="info">
		<div>
			<p class="name"><?php echo $userifo['username']; ?></p>
			<p class="account"><?php echo $userifo['account']; ?></p>
		</div>
		<img id="avatar" alt="avatar" src="layout/default/image/avatar.png">
	</div>
	
	<div class="control">
		<div class="top">
			<div class="bleft"> <a href="<?php  echo Config::BASEURL ?>?_module=User&_action=edit&_Userid=<?php echo $userifo['id']; ?>"> <img alt="avatar" src="layout/default/image/avatar.png"> </a></div>
			<div class="bright">
				<label><?php echo $userifo['code'].' - '.$userifo['username']; ?></label>
				<label style="font-size: 12px;"><?php echo $userifo['email']; ?></label>
				<label><?php echo $userifo['numberphone']; ?></label>
				<label><?php echo $c->getNameByid($userifo['company']); ?></label>
			</div>
		</div>
		<div class="bot">
			<a class="x1" href="<?php  echo Config::BASEURL ?>?_module=User&_action=edit&_Userid=<?php echo $userifo['id']; ?>">Change profile</a>
			<a class="x2" href="<?php  echo Config::BASEURL ?>?_module=User&_action=logout">Sign out</a>
		</div>
	</div>
	
</div>